package org.eclipse.emf.index.omds.ui.control;

public class NamesSeperator {
	private String sampleString = "Hello+Wow";
	int index1 = 0;
	
	public NamesSeperator(String sampleStringPassed) {
		this.sampleString = sampleStringPassed;
		
	}
	
	public String getPackageName(){		
		index1 = sampleString.lastIndexOf("+");
		String packageName = sampleString.substring(0, index1); 
		return packageName;
	}
	
	public String getProjectName(){
		index1 = sampleString.lastIndexOf("+");
		String projectName = sampleString.substring(index1+1);
		return projectName;
	}

}
